// api.js数据接口
// import axios from 'axios'
import {request} from '../utils/request'
// 自助密码修改
export function updateUserPasswd (self, query) {
    console.log(query)
	return request(self, {
        url: '/user_updateUserPasswd',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 用户列表检索
export function listUser (self, query) {
    console.log(query)
	return request(self, {
        url: '/user_listUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 新增租户
export function addUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_addUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 删除
export function deleteUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_deleteUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 修改
export function updateUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_updateUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 重置
export function resetUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_resetUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 启用
export function enableUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_enableUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 禁用
export function disableUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_disableUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
// 查询
export function getUser (self, query) {
    console.log(query)
    return request(self, {
        url: '/user_getUser',
        headers: { 'requestType': 'json' },
        method: 'POST',
        data: query
    })
}
